<?php 
if(($ad->getDisplayPrice() > 0) && ($ad->getPriceGlobalTxt(0) != '0'))
{
	switch($adc->getViewObject())
	{
		default:
			if($ad->getDisplayPrice() > 0)
			{ 
				
					echo '<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="attribute">';
					if($ad->getIsBuying() > 0) { echo ucfirst($txt->getWord('max')); }
					echo ucfirst($txt->getWord('price')).'</span><br />';
					if($ad->getPriceDisplay() > 0) 
					{ 
						echo '<span class="value" itemprop="price">';
						if(($adc->getSetting('LocalCurrencyDisplay') > 0) && ($ad->getPriceLocal() > 0))
						{ echo $ad->getPriceLocalTxt(0); }
						else
						{ echo $ad->getPriceGlobalTxt(0); }
						echo '</span>'; 
						if(($adc->getSetting('LocalCurrencyDisplay') > 0) && ($ad->getPriceLocal() > 0))
						{ echo ' <meta itemprop="priceCurrency" content="'.$ad->getPriceCurrency().'" />'.$ad->getPriceCurrency(); }
						else
						{ echo ' <meta itemprop="priceCurrency" content="'.$adc->getSetting('GlobalCurrency').'" />'.$adc->getSetting('GlobalCurrency'); }
						if($ad->getDisplayIsNew())
						{
							if($ad->getIsNew() == 0)
							{ echo '<span itemprop="itemCondition" content="used">.</span> '; }
						}
					}
					else
					{ echo '<span class="value">'.ucfirst($txt->getWord('at_request')).'</span>'; }
					echo '</div>';
			}
		break;
	}
}
?>